from osgeo import gdal
dataset:gdal.Dataset = gdal.Open("D:/Code/Python/pyGDAL/Include/dataset/raster.tif")
# print(dataset.GetDescription())
# print(dataset.RasterCount)
# print(dataset.RasterXSize)
# print(dataset.RasterYSize)
# print(dataset.GetGeoTransform())
# print(dataset.GetMetadata())
band:gdal.Band = dataset.GetRasterBand(1)
bandArray = band.ReadAsArray()
print(bandArray)
dataset = None                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                